def foo():
    for x in range(10):
        yield x

    yield 100


a = foo()

for t in a:
    print(t)